[#assign PayMode = {"0" : "线下支付", "1" : "快钱在线支付", "2" : "浙商在线支付", "3" : "平安银行在线支付"}]
[#assign PayResult = {"1" : "支付凭证审核中", "3" : "待复核"}]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
	<title>支付详情</title>
    <link href="/res/css/common/baseAzt.css" rel="stylesheet" type="text/css" />
    <link href="/res/css/common/backheadfoot.css" rel="stylesheet" type="text/css" />
    <link href="/res/css/common/backcommon.css" rel="stylesheet" type="text/css" />
    <link href="/res/css/respective/order/back-order.css" rel="stylesheet">
</head>
<style>
.addr{
	overflow: hidden;
    word-break: break-all;
    white-space: nowrap;
    text-overflow: ellipsis;
}
</style>
<body>
[#-- ispurchaser是否是采购商 --]
[#assign ispurchaser = Session.currentRole.roleType == 1]
	<div class="warp [#if !ispurchaser]warp-supplier[/#if]">
    [#include "/front/common/front_headAzt.html"]
         <div class="backcontent">
            <div class="back-main back-main-view">
            	<div class="inner">
      				<div class="alltitle">支付详情</div>
                    <div class="orderpayInfo">
                    	<h4>订单信息</h4>
                        <div class="cont">
                        	<table>
                            	<tbody>
                                	<tr>
                                        [#if orderInfo.ordertype == 2]
                                            <td width="25%"><span class="gray">项目名称：</span>${orderInfo.projectName!}</td>
                                            <td width="25%"><span class="gray">询价名称：</span><a href="/xmh/${orderInfo.enquiryId!}" target="_blank">${orderInfo.enquiryName!}</a></td>
                                        [/#if]
                                        <td width="25%"><span class="gray">订单号：</span>${orderInfo.orderNumber!}</td>
                                        <td width="25%"><span class="gray">应付总额：</span> <b class="orange">￥${orderInfo.totalPrice?string('0.00')!}</b></td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                    <div class="orderpayInfo">
                    <h4>买方付款账户信息</h4>
                    <div class="cont">
                    <table>
                    <tbody>
                    [#if baccount??]
                    <tr>
                    <td><span>开户行名称：${baccount.bankName!}</span></td>
                    </tr>
                    <tr>
                    <td><span>账号名称：${baccount.acctName!}</span></td>
                    </tr>
                    <tr>
                    <td><span>账号：${baccount.hideRelatedAcctId!}</span></td>
                    </tr>
                    [#else]
                    <tr>
                    <td><span>无</span></td>
                    </tr>
                    [/#if]
                    </tbody>
                    </table>
                    </div>
                    </div>
                    <div class="orderpayInfo">
                    <h4>卖方付款账户信息</h4>
                    <div class="cont">
                    <table>
                    <tbody>
                    [#if saccount??]
                    <tr>
                    <td><span>开户行名称：${saccount.bankName!}</span></td>
                    </tr>
                    <tr>
                    <td><span>账号名称：${saccount.acctName!}</span></td>
                    </tr>
                    <tr>
                    <td><span>账号：${saccount.hideRelatedAcctId!}</span></td>
                    </tr>
                    [#else]
                    <tr>
                    <td><span>无</span></td>
                    </tr>
                    [/#if]
                    </tbody>
                    </table>
                    </div>
                    </div>

                    <div class="orderpayInfo orderpayInfo2">
                    	<h4>支付信息</h4>
                        <div class="cont">
                        	<table>
                            	<tbody>
                            	[#if orderPays?? && orderPays?size>0 ]
                            		[#list orderPays as orderPay]
                                	<tr style="border-bottom: 1px solid #ebebeb;">
                                    	<td width="30%"><b>[#if orderInfo.ifBatchPay?? && orderInfo.ifBatchPay==1]第${orderPay_index+1!}批：[#else]一次性支付：[/#if]</b><span class="gray">应付金额：</span>¥${orderPay.totalPrice?string('0.00')!}</td>
                                    	<td width="40%">
                                            <span class="gray">支付流水号：</span>${orderPay.payNumber!}
                                        </td>
                                        <td width="10%"><span class="gray">安装币抵扣：</span>¥${(orderPay.dePrice!0.00)?string('0.00')}</td>
                                        
                                    </tr>
                                    <tr style="border-bottom: 1px solid #ebebeb;">
                                    	<td width="30%"><span class="gray">实付金额：</span>¥[#if orderPay.isDeco??]${(orderPay.totalPrice-orderPay.dePrice!0)?string('0.00')}[#else]${orderPay.totalPrice?string('0.00')!}[/#if]</td>
                                        <td width="40%">
                                            <span class="gray">实付时间：</span>${(orderPay.payTime?string("yyyy-MM-dd HH:mm"))!}
                                            &nbsp;&nbsp;&nbsp;
                                            [#if orderPay.payMode??]
                                            ${PayMode[orderPay.payMode?string]!}
                                                [#if orderPay.payMode == 0 && orderPay.proveImg??]
                                                    (<a href="javascript:viewPic('${orderPay.proveImg!}')">查看支付凭证</a>)
                                                [/#if]
                                            [/#if]
                                        </td>
                                        <td>
                                            ${PayResult[orderPay.payResult?string]!}
                                        </td>
                                    </tr>
                                    [/#list]
                                [#else]
                                	<tr>
                                    	<td width="50%"><span class="gray">暂无支付信息</span></td>
            						</tr>
                           		[/#if] 
                                </tbody>
                            </table>
                        </div>
                    </div>
                    <div class="orderpayInfo orderpayInfo2">
                    	<h4>发票信息</h4>
                        <div class="cont">
                        	<table style="table-layout: fixed;">
                            	<tbody>
                                    [#if orderInfo.invoice==2]
                                    <tr>
                                        <td width="25%"><span class="gray">发票类型：</span>增值税普通发票</td>
                                        <td width="25%"><span class="gray">发票抬头：</span>${orderInfo.taxTitle!}</td>
                                        <td>&nbsp;</td>
                                    </tr>
                                    [#elseif orderInfo.invoice==3]
                                    <tr>
                                        <td width="25%"><span class="gray">发票类型：</span>增值税专用发票</td>
                                        <td width="25%"><span class="gray">公司名称：</span>${topBuyerCompany.companyName!}</td>
                                        <td width="25%"><span class="gray">纳税人识别号：</span>${orderInfo.taxNumber!}</td>
                                    </tr>
                                    <tr>
                                        <td class="addr" title="${orderInfo.taxAddress!}" width="25%"><span class="gray">注册地址：</span>${orderInfo.taxAddress!}</td>
                                        <td width="25%"><span class="gray">注册电话：</span>${orderInfo.taxPhone!}</td>
                                        <td class="khBank" width="25%" title="${orderInfo.taxOpenbank!}"><span class="gray">开户银行：</span>${orderInfo.taxOpenbank!}</td>
                                   </tr>
                                   <tr>
                                        <td width="25%"><span class="gray">开户账号：</span>${orderInfo.taxBankNumber!}</td>
                                   </tr>
                                    [#else]
                                    <tr>
                                        <td width="50%"><span class="gray">无需开票</span></td>
                                    </tr>
                                    [/#if]
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
         </div>
		[#include "/front/common/front_footerAzt.html"]

    </div>
<script type="text/javascript" src="/res/js/common/jquery.1.9.1.min.js"></script>
<script type="text/javascript" src="/res/js/structure/struture.js"></script>
<script type="text/javascript" src="/res/js/common/common.js"></script>
<script type="text/javascript" src="/res/third/layer/layer.js"></script>
<script type="text/javascript">
function viewPic(pic) {
	var pics = pic.split(',');
	var data = [];
	for(var i=0;i<pics.length;i++){
		data.push({alt:"交易凭证", src:pics[i]});
	}
    layer.photos({
        photos: {
            "data": data
        },
        anim: 0,
        closeBtn : 1
    });
}
</script>
</body>
</html>
